#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define MAX(a,b)(a>b?a:b)
extern int soul;
extern void Add(int,int);
void test()
{
	/*int a = 0;*/
	static int a = 0;
	a++;
	printf("%d\n", a);
}
int main1()
{
	/*printf("%d\n", soul);*/
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		test();
	}
	Add(10, 20);
	printf("%d\n", MAX(10, 20));
}
int main2()
{
	int num = 10;
	int* p = &num;
	*p = 30;
	printf("%d\n", num);
	printf("%p\n", &num);
	printf("%d\n", sizeof(int*));
}
int main()
{
	struct student
	{
		char name[20];
		int age;
		char sex[10];
	};
	struct student sc = { "abb",20,"gril" };
	printf("%s %d %s\n", sc.name, sc.age, sc.sex);
	struct student* p = &sc;
	printf("%s %d %s\n", p->name, p->age, p->sex);
	printf("%s %d %s\n", (*p).name,(*p).age,(*p).sex);
}